/* Copyright (c) 2024 Huawei Technologies Co., Ltd.
openFuyao is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
         http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN 'AS IS' BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details. */
@import '@/styles/common.less';
.monitor_namespace {
  margin: 20px 32px;

  .monitor_content_header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    .@{container-prefix}-radio-group {
      label:first-child {
        border-start-start-radius: 6px;
        border-end-start-radius: 6px;
      }

      label:last-child {
        border-start-end-radius: 6px;
        border-end-end-radius: 6px;
      }

      .@{container-prefix}-radio-button-wrapper-checked {
        background: @button-normal-color;
        color: #fff;
        border-color: @button-normal-color;
      }
    }
  }

  .show_component_card {
    margin: 20px 0;
    padding: 20px 5%;
    background-color: @page-container-color;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    .monitor_aim_flex {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;

      img {
        width: 72px;
        height: 72px;
        margin-right: 20px;
      }
    }

    .monitor_aim_flex_item {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: space-between;

      p {
        color: #89939b;
        font-size: 14px;
        font-weight: normal;
        line-height: 22px;
      }

      p:nth-child(1) {
        line-height: 24px;
        margin-bottom: 13px;
        color: #333333;
        font-size: 32px;
        font-weight: bold;
      }
    }
  }
.monitor_bk{
  background-color: @page-container-color;
  padding:32px;
  .chart_title{
    font-weight: normal !important;
  }
  .chart_table_monitor{
    padding: 0;
  }
}
.monitor_half {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  .chart_container:nth-child(1) {
    margin-right: 20px;
  }
  .donut_chart{
    width: 500px;
    .chart_container{
      margin-right: 0;
    }
  }
}
  .monitor_chart_container {
    margin: 20px 0;

    .chart_title {
      color: #333333;
      line-height: 24px;
      font-weight: bold;
      font-size: 20px;
      margin-bottom: 12px;
    }

    .monitor_overview {
      display: flex;
      flex-direction: row;

      .info_box {
        padding: 32px;
        background-color: @page-container-color;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        width: 70%;
        height: 300px;
        align-items: center;

        .info_item {
          display: flex;
          flex-direction: column;
          align-items: flex-start;

          .info_title {
            color: #333333;
            font-size: 16px;
          }

          .info_content {
            display: flex;
            margin-top:64px;
            flex-direction: row;
            align-items: center;

            img {
              width: 96px;
              height: 96px;
              margin-right: 16px;
            }

            .number_count {
              color: #333333;
              font-size: 56px;
              font-weight: bold;
            }
          }
        }
      }
      .donut_chart{
        width: 28%;
        margin-left: 2%;
        margin-top:0;
        height: 300px;
      }
    }
  }

  .each_half {
    width: calc(100% / 2 + 10px);
  }
}
.monitor_header{
  background: #fff;
  padding: 30px 67px;
  height: 338px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  .monitor_dount{
    width: calc((100% - 40px) / 2);
    .title{
      font-size: 16px;
      font-weight: 700;
      line-height: 21px;
    }
    .dount_container{
      overflow: hidden;
    }
  }
}
.monitor_line_container{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 24px;
  background: #fff;
  padding: 20px 30px;
  .select_box{
    margin-left: auto;
    min-width: 300px;
    margin-bottom: -40px;
  }
  .each_monitor_container{
    width: 100%;
    height: 320px;
    display: flex;
    flex-direction: column;
    .line_container{
      overflow: hidden;
    }
    .title{
      font-size: 16px;
      line-height: 24px;
      font-weight: 700;
    }
    .chart_header{
      margin-top: 16px;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      .subtitle{
        font-size: 14px;
        line-height: 24px;
        font-weight: 700;
      }
      svg{
        width: 18px;
        height: 12px;
        color: rgb(53,106,196);
      }
      .lenged{
        color: rgb(53,106,196);
        cursor: pointer;
        span{
          margin-left: 5px;
        }
      }
      .legend_box{
        border-radius: 6px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        background: #fff;
        box-shadow: 0 2px 16px 0 rgba(51,51,51,0.2);
        .each_legend{
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: flex-start;
          gap: 5px;
          .color_show{
            width: 20px;
            height: 4px;
            border-radius: 3px;
          }
          .aim_legend{
            font-size: 14px;
            font-weight: 400;
            line-height: 20px;
          }
        }
      }
    }
  }
}